#define _CRT_SECURE_NO_WARNINGS 1
#include "SList.h"

int main()
{
	SListNode* plist = NULL;
	//尾插
	SLPushBack(&plist, 1);
	SLPushBack(&plist, 2);
	SLPushBack(&plist, 3);
	SLPushBack(&plist, 4);
	SLPrint(plist);
	//头插
	//SLPushFront(&plist, 5);
	//SLPrint(plist);
	//SLPushFront(&plist, 6);
	//SLPrint(plist);
	//尾删
	//SLPopBack(&plist);
	//SLPrint(plist);
	//头删
	//SLPopFront(&plist);
	//SLPrint(plist);
	//查找
	SListNode* find1 = SLFind(plist, 1);
	//SLPrint(find1);
	//SListNode* find2 = SLFind(plist, 5);
	//SLPrint(find2);
	//指定位置之前插入
	//SLFrontInsert(&plist, find1, 5);
	//SLPrint(plist);
	//在指定位置之后插入
	//SLBackInsert(&plist, find1, 5);
	//SLPrint(plist);
	//SLDelete(&plist, find1);
	//SLPrint(plist);
	//SLDeleteAfter(find1);
	//SLPrint(plist);
	SLDestroy(&plist);
	SLPrint(plist);
	return 0;
}
